//
//  WBNetWorkTool.swift
//  weibo
//
//  Created by Felix on 16/11/16.
//  Copyright © 2016年 Felix. All rights reserved.
//

import UIKit
import AFNetworking

class WBNetWorkTool: AFHTTPSessionManager {
    static let shareInstance:WBNetWorkTool = {
        let baseUrl = URL.init(string: "https://api.weibo.com/")
        
        let instance = WBNetWorkTool.init(baseURL: baseUrl, sessionConfiguration: URLSessionConfiguration.default)
        instance.responseSerializer.acceptableContentTypes = NSSet.init(objects: "application/json","text/json","text/javascript","text/plain")as? Set
        return instance
    
    }()
    
    
    
    func loadStatues()  {
//        let params = ["access_token":WBUserAccount.userAccount?.access_token];
//        let url = ""
//        self.get(<#T##URLString: String##String#>, parameters: <#T##Any?#>, progress: <#T##((Progress) -> Void)?##((Progress) -> Void)?##(Progress) -> Void#>, success: <#T##((URLSessionDataTask, Any?) -> Void)?##((URLSessionDataTask, Any?) -> Void)?##(URLSessionDataTask, Any?) -> Void#>, failure: <#T##((URLSessionDataTask?, Error) -> Void)?##((URLSessionDataTask?, Error) -> Void)?##(URLSessionDataTask?, Error) -> Void#>)
    }
    
}
